package cn.ljx.Service.impl;

import cn.ljx.mapper.UserMapper;
import cn.ljx.Service.UserService;
import cn.ljx.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dell on 2019/1/3.
 */
@Service("userService")
public class UserServiceimpl implements UserService {

@Resource
public UserMapper userMapper;
    @Override
    public List<User> AllWhere(User user) {

        return userMapper.AllWhere(user);
    }

    @Override
    public List<User> whereSelect(int where, String like) {
        return userMapper.whereSelect(where,like);
    }

    @Override
    public int addUser(User user) {
        return userMapper.addUser(user);
    }
}
